using System;
using System.Collections;
using System.Collections.Generic;
using Newtonsoft.Json;
using UnityEngine;
using UnityEngine.Networking;
using UnityEngine.SceneManagement;
using WoogiWorld.Event;

namespace BuildWheel
{
    public class Main : MonoBehaviour
    {
        public int targetFrameRate = 30;
        private void Awake()
        {
            DontDestroyOnLoad(gameObject);
            Application.targetFrameRate = targetFrameRate;
            var a = ResExtendsMgr.Instance.name;
            ResExtendsMgr.isUsedAB = true;
            ResMgr.isReady = true;
            EventDispatcher.Instance.AddEventListener(EventAllName.Gms_ResExtendsReady, this, OnAssetReady);
        }
        
        /// <summary>
        /// assetbundle Checklist is ready
        /// </summary>
        /// <param name="info"></param>
        private void OnAssetReady(EventMessage info)
        {
           Debug.Log("ab ready");
        }
    }
}